package org.anyin.gitee.cloud.center.upms.repository;

import com.google.common.collect.Lists;
import org.anyin.gitee.cloud.center.upms.mapper.SysUserRoleMapper;
import org.anyin.gitee.cloud.center.upms.model.SysUserRole;
import org.anyin.gitee.cloud.lib.core.web.BaseRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class SysUserRoleRepository extends BaseRepository<SysUserRoleMapper, SysUserRole> {

    public Boolean hasRole(Long sysUserId){
        return baseMapper.hasRole(sysUserId);
    }

    public List<String> getRoleListByUserId(Long userId){
        return baseMapper.getRoleListByUserId(userId);
    }
}
